# Maintainer: Zsolt Vadasz <zsolt_vadasz@protonmail.com>
pkgname=libhwpwm
pkgver=0.4.4
pkgrel=0
pkgdesc="An easy to use library to communicate with the Linux kernel's sysfs PWM interface."
url="https://github.com/zsoltiv/libhwpwm"
arch="all"
license="LGPL-3.0-or-later"
makedepends="scdoc"
options="!check" # no tests provided by upstream
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/zsoltiv/libhwpwm/archive/refs/tags/$pkgver.tar.gz"

build() {
	make
}

package() {
	make install PREFIX=/usr DESTDIR="$pkgdir"
	make install-man PREFIX=/usr DESTDIR="$pkgdir"
}


sha512sums="
280c57a08fa4200fccbd0912fd11d7d53c4ac9acd94cfefdc8d55c8b094c61cb23433f52f36391fcaafe2f87f566e7b7e77d9e0300ad630208f2f04b36fd2820  libhwpwm-0.4.4.tar.gz
"
